[INFO] crate cargo-luban 0.3.1 is already in cache
[INFO] building cargo-luban-0.3.1 against master#ff34b919075f35a1787659e9c448a34b06bab8de for issue-85264
[INFO] extracting crate cargo-luban 0.3.1 into /workspace/builds/worker-2/source
[INFO] validating manifest of crates.io crate cargo-luban 0.3.1 on toolchain ff34b919075f35a1787659e9c448a34b06bab8de
[INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+ff34b919075f35a1787659e9c448a34b06bab8de" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] started tweaking crates.io crate cargo-luban 0.3.1
[INFO] finished tweaking crates.io crate cargo-luban 0.3.1
[INFO] tweaked toml for crates.io crate cargo-luban 0.3.1 written to /workspace/builds/worker-2/source/Cargo.toml
[INFO] crate crates.io crate cargo-luban 0.3.1 already has a lockfile, it will not be regenerated
[INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+ff34b919075f35a1787659e9c448a34b06bab8de" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:20528e8c29e4536546f0102ce88568b16ea7538393a33fcca951030f7af10457" "/opt/rustwide/cargo-home/bin/cargo" "+ff34b919075f35a1787659e9c448a34b06bab8de" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 7057adaa5a8fd79b62b5133773d9ea61019c902346bad2e47f5a0a4d349e84c8
[INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap.
[INFO] running `Command { std: "docker" "start" "-a" "7057adaa5a8fd79b62b5133773d9ea61019c902346bad2e47f5a0a4d349e84c8", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "7057adaa5a8fd79b62b5133773d9ea61019c902346bad2e47f5a0a4d349e84c8", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "7057adaa5a8fd79b62b5133773d9ea61019c902346bad2e47f5a0a4d349e84c8", kill_on_drop: false }`
[INFO] [stdout] 7057adaa5a8fd79b62b5133773d9ea61019c902346bad2e47f5a0a4d349e84c8
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:20528e8c29e4536546f0102ce88568b16ea7538393a33fcca951030f7af10457" "/opt/rustwide/cargo-home/bin/cargo" "+ff34b919075f35a1787659e9c448a34b06bab8de" "build" "--frozen" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 00a90a1d1a1638fc299a91bc1a58563a59547e9cda75053dbc526fd3c018bff5
[INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap.
[INFO] running `Command { std: "docker" "start" "-a" "00a90a1d1a1638fc299a91bc1a58563a59547e9cda75053dbc526fd3c018bff5", kill_on_drop: false }`
[INFO] [stderr]    Compiling libc v0.2.66
[INFO] [stderr]    Compiling cc v1.0.28
[INFO] [stderr]    Compiling pkg-config v0.3.14
[INFO] [stderr]    Compiling cfg-if v0.1.6
[INFO] [stderr]    Compiling memchr v2.1.3
[INFO] [stderr]    Compiling proc-macro2 v0.4.26
[INFO] [stderr]    Compiling serde v1.0.85
[INFO] [stderr]    Compiling num-traits v0.2.6
[INFO] [stderr]    Compiling ucd-util v0.1.3
[INFO] [stderr]    Compiling ryu v0.2.7
[INFO] [stderr]    Compiling regex v1.1.0
[INFO] [stderr]    Compiling ucd-trie v0.1.1
[INFO] [stderr]    Compiling utf8-ranges v1.0.2
[INFO] [stderr]    Compiling num-integer v0.1.39
[INFO] [stderr]    Compiling unic-common v0.7.0
[INFO] [stderr]    Compiling maplit v1.0.1
[INFO] [stderr]    Compiling unic-char-range v0.7.0
[INFO] [stderr]    Compiling rustc-demangle v0.1.13
[INFO] [stderr]    Compiling linked-hash-map v0.5.1
[INFO] [stderr]    Compiling itoa v0.4.3
[INFO] [stderr]    Compiling bitflags v1.0.4
[INFO] [stderr]    Compiling unicode-width v0.1.5
[INFO] [stderr]    Compiling rust-ini v0.13.0
[INFO] [stderr]    Compiling dtoa v0.4.3
[INFO] [stderr]    Compiling same-file v1.0.4
[INFO] [stderr]    Compiling strsim v0.7.0
[INFO] [stderr]    Compiling fs_extra v0.1.0
[INFO] [stderr]    Compiling case v1.0.0
[INFO] [stderr]    Compiling backtrace v0.3.13
[INFO] [stderr]    Compiling thread_local v0.3.6
[INFO] [stderr]    Compiling log v0.4.6
[INFO] [stderr]    Compiling serde_test v0.8.23
[INFO] [stderr]    Compiling unic-ucd-version v0.7.0
[INFO] [stderr]    Compiling unic-char-property v0.7.0
[INFO] [stderr]    Compiling regex-syntax v0.6.4
[INFO] [stderr]    Compiling pest v2.1.0
[INFO] [stderr]    Compiling yaml-rust v0.4.2
[INFO] [stderr]    Compiling textwrap v0.10.0
[INFO] [stderr]    Compiling walkdir v2.2.9
[INFO] [stderr]    Compiling unic-ucd-segment v0.7.0
[INFO] [stderr]    Compiling sqlparser v0.5.0
[INFO] [stderr]    Compiling unicode-normalization v0.1.8
[INFO] [stderr]    Compiling linked-hash-map v0.3.0
[INFO] [stderr]    Compiling unic-segment v0.7.0
[INFO] [stderr]    Compiling quote v0.6.11
[INFO] [stderr]    Compiling openssl-sys v0.9.41
[INFO] [stderr]    Compiling libz-sys v1.0.25
[INFO] [stderr]    Compiling backtrace-sys v0.1.28
[INFO] [stderr]    Compiling curl-sys v0.4.16
[INFO] [stderr]    Compiling libssh2-sys v0.2.11
[INFO] [stderr]    Compiling libgit2-sys v0.7.11
[INFO] [stderr]    Compiling syn v0.15.26
[INFO] [stderr]    Compiling time v0.1.42
[INFO] [stderr]    Compiling atty v0.2.11
[INFO] [stderr]    Compiling dirs v1.0.4
[INFO] [stderr]    Compiling num-traits v0.1.43
[INFO] [stderr]    Compiling pest_meta v2.1.0
[INFO] [stderr]    Compiling clap v2.32.0
[INFO] [stderr]    Compiling aho-corasick v0.6.9
[INFO] [stderr]    Compiling nom v4.2.0
[INFO] [stderr]    Compiling idna v0.1.5
[INFO] [stderr]    Compiling chrono v0.4.6
[INFO] [stderr]    Compiling error-chain v0.12.0
[INFO] [stderr]    Compiling url v1.7.2
[INFO] [stderr]    Compiling pest_generator v2.1.0
[INFO] [stderr]    Compiling serde_json v1.0.37
[INFO] [stderr]    Compiling toml v0.4.10
[INFO] [stderr]    Compiling serde_yaml v0.8.8
[INFO] [stderr]    Compiling serde-hjson v0.8.2
[INFO] [stderr]    Compiling serde_derive v1.0.85
[INFO] [stderr]    Compiling pest_derive v2.1.0
[INFO] [stderr]    Compiling config v0.9.2
[INFO] [stderr]    Compiling tera v0.11.20
[INFO] [stderr]    Compiling nom-sql v0.0.10
[INFO] [stderr]    Compiling git2 v0.7.5
[INFO] [stderr]    Compiling cargo-luban v0.3.1 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused import: `std::fs::File`
[INFO] [stdout]  --> src/sql/sql_parser.rs:1:5
[INFO] [stdout]   |
[INFO] [stdout] 1 | use std::fs::File;
[INFO] [stdout]   |     ^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::io::Read`
[INFO] [stdout]  --> src/sql/sql_parser.rs:2:5
[INFO] [stdout]   |
[INFO] [stdout] 2 | use std::io::Read;
[INFO] [stdout]   |     ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::path::Path`
[INFO] [stdout]  --> src/sql/sql_parser.rs:4:5
[INFO] [stdout]   |
[INFO] [stdout] 4 | use std::path::Path;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::ops::FnOnce`
[INFO] [stdout]  --> src/sql/sql_parser.rs:5:5
[INFO] [stdout]   |
[INFO] [stdout] 5 | use std::ops::FnOnce;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::borrow::Borrow`
[INFO] [stdout]  --> src/sql/sql_parser.rs:6:5
[INFO] [stdout]   |
[INFO] [stdout] 6 | use std::borrow::Borrow;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::fs`
[INFO] [stdout]  --> src/structure_builder.rs:3:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | use std::fs;
[INFO] [stdout]   |     ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `tera::Tera`
[INFO] [stdout]  --> src/structure_builder.rs:4:5
[INFO] [stdout]   |
[INFO] [stdout] 4 | use tera::Tera;
[INFO] [stdout]   |     ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `fs::DirEntry`
[INFO] [stdout]  --> src/template_installer.rs:6:5
[INFO] [stdout]   |
[INFO] [stdout] 6 | use fs::DirEntry;
[INFO] [stdout]   |     ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `walkdir::WalkDir`
[INFO] [stdout]   --> src/template_installer.rs:11:5
[INFO] [stdout]    |
[INFO] [stdout] 11 | use walkdir::WalkDir;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `super::structure_builder::ProjectStructure`
[INFO] [stdout]  --> src/template_renderer.rs:5:5
[INFO] [stdout]   |
[INFO] [stdout] 5 | use super::structure_builder::ProjectStructure;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::borrow::Borrow`
[INFO] [stdout]   --> src/template_renderer.rs:11:5
[INFO] [stdout]    |
[INFO] [stdout] 11 | use std::borrow::Borrow;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::io`
[INFO] [stdout]  --> src/file_utils.rs:3:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | use std::io;
[INFO] [stdout]   |     ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::fs`
[INFO] [stdout]  --> src/ext/tera_util.rs:1:5
[INFO] [stdout]   |
[INFO] [stdout] 1 | use std::fs;
[INFO] [stdout]   |     ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `nom_sql::parser`
[INFO] [stdout]  --> src/ext/tera_util.rs:3:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | use nom_sql::parser;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `command_args_parser::ParsedArgs`
[INFO] [stdout]   --> src/main.rs:25:5
[INFO] [stdout]    |
[INFO] [stdout] 25 | use command_args_parser::ParsedArgs;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `sql::sql_parser`
[INFO] [stdout]   --> src/main.rs:26:5
[INFO] [stdout]    |
[INFO] [stdout] 26 | use sql::sql_parser;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `force`
[INFO] [stdout]    --> src/template_installer.rs:208:61
[INFO] [stdout]     |
[INFO] [stdout] 208 | pub fn install_template_from_dir(name: String, dir: String, force: bool) {
[INFO] [stdout]     |                                                             ^^^^^ help: if this is intentional, prefix it with an underscore: `_force`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_variables)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `item`
[INFO] [stdout]    --> src/template_renderer.rs:237:23
[INFO] [stdout]     |
[INFO] [stdout] 237 | fn copy_template_file(item: &ProjectStructureItem) {
[INFO] [stdout]     |                       ^^^^ help: if this is intentional, prefix it with an underscore: `_item`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `f`
[INFO] [stdout]    --> src/template_renderer.rs:261:17
[INFO] [stdout]     |
[INFO] [stdout] 261 |              Ok(f) => (),
[INFO] [stdout]     |                 ^ help: if this is intentional, prefix it with an underscore: `_f`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `e`
[INFO] [stdout]    --> src/template_renderer.rs:262:18
[INFO] [stdout]     |
[INFO] [stdout] 262 |              Err(e) => match fs::create_dir_all(&target_dir_path) {
[INFO] [stdout]     |                  ^ help: if this is intentional, prefix it with an underscore: `_e`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `t`
[INFO] [stdout]    --> src/template_renderer.rs:263:21
[INFO] [stdout]     |
[INFO] [stdout] 263 |                  Ok(t) => println!("[create dir]: {}", &target_dir_path),
[INFO] [stdout]     |                     ^ help: if this is intentional, prefix it with an underscore: `_t`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `v`
[INFO] [stdout]    --> src/template_renderer.rs:269:16
[INFO] [stdout]     |
[INFO] [stdout] 269 |             Ok(v) => println!("[copy  asset]: {}", &target_file_path),
[INFO] [stdout]     |                ^ help: if this is intentional, prefix it with an underscore: `_v`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function is never used: `valid_sql_line`
[INFO] [stdout]  --> src/sql/file_to_sql.rs:6:4
[INFO] [stdout]   |
[INFO] [stdout] 6 | fn valid_sql_line(line: &&str) -> bool {
[INFO] [stdout]   |    ^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(dead_code)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function is never used: `read_sql_file`
[INFO] [stdout]   --> src/sql/file_to_sql.rs:15:8
[INFO] [stdout]    |
[INFO] [stdout] 15 | pub fn read_sql_file(path: &str) -> Vec<String> {
[INFO] [stdout]    |        ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function is never used: `split_into_sql`
[INFO] [stdout]   --> src/sql/file_to_sql.rs:25:8
[INFO] [stdout]    |
[INFO] [stdout] 25 | pub fn split_into_sql(content: &str) -> Vec<String> {
[INFO] [stdout]    |        ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function is never used: `parse_sql_file`
[INFO] [stdout]   --> src/sql/sql_parser.rs:11:8
[INFO] [stdout]    |
[INFO] [stdout] 11 | pub fn parse_sql_file(path: &str) -> Vec<SqlQuery> {
[INFO] [stdout]    |        ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function is never used: `is_dir`
[INFO] [stdout]   --> src/structure_builder.rs:23:12
[INFO] [stdout]    |
[INFO] [stdout] 23 |     pub fn is_dir(&self) -> bool {
[INFO] [stdout]    |            ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function is never used: `get_template_path`
[INFO] [stdout]   --> src/template_installer.rs:33:8
[INFO] [stdout]    |
[INFO] [stdout] 33 | pub fn get_template_path() -> PathBuf {
[INFO] [stdout]    |        ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function is never used: `copy_template_file`
[INFO] [stdout]    --> src/template_renderer.rs:237:4
[INFO] [stdout]     |
[INFO] [stdout] 237 | fn copy_template_file(item: &ProjectStructureItem) {
[INFO] [stdout]     |    ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function is never used: `new`
[INFO] [stdout]   --> src/ext/tera_util.rs:14:8
[INFO] [stdout]    |
[INFO] [stdout] 14 |     fn new(template_path: &str)-> Self {
[INFO] [stdout]    |        ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: panic message is not a string literal
[INFO] [stdout]    --> src/template_renderer.rs:264:35
[INFO] [stdout]     |
[INFO] [stdout] 264 |                  Err(e) => panic!(e),
[INFO] [stdout]     |                                   ^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(non_fmt_panic)]` on by default
[INFO] [stdout]     = note: this is no longer accepted in Rust 2021
[INFO] [stdout] help: add a "{}" format string to Display the message
[INFO] [stdout]     |
[INFO] [stdout] 264 |                  Err(e) => panic!("{}", e),
[INFO] [stdout]     |                                   ^^^^^
[INFO] [stdout] help: or use std::panic::panic_any instead
[INFO] [stdout]     |
[INFO] [stdout] 264 |                  Err(e) => std::panic::panic_any(e),
[INFO] [stdout]     |                            ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: panic message is not a string literal
[INFO] [stdout]    --> src/template_renderer.rs:270:30
[INFO] [stdout]     |
[INFO] [stdout] 270 |             Err(e) => panic!(e)
[INFO] [stdout]     |                              ^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this is no longer accepted in Rust 2021
[INFO] [stdout] help: add a "{}" format string to Display the message
[INFO] [stdout]     |
[INFO] [stdout] 270 |             Err(e) => panic!("{}", e)
[INFO] [stdout]     |                              ^^^^^
[INFO] [stdout] help: or use std::panic::panic_any instead
[INFO] [stdout]     |
[INFO] [stdout] 270 |             Err(e) => std::panic::panic_any(e)
[INFO] [stdout]     |                       ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused `Result` that must be used
[INFO] [stdout]    --> src/template_installer.rs:201:17
[INFO] [stdout]     |
[INFO] [stdout] 201 |                 fs::copy(entry.as_path(), to_dir);
[INFO] [stdout]     |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_must_use)]` on by default
[INFO] [stdout]     = note: this `Result` may be an `Err` variant, which should be handled
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused `Result` that must be used
[INFO] [stdout]    --> src/template_installer.rs:216:5
[INFO] [stdout]     |
[INFO] [stdout] 216 |     fs::create_dir_all(&template_path);
[INFO] [stdout]     |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this `Result` may be an `Err` variant, which should be handled
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused `Result` that must be used
[INFO] [stdout]    --> src/template_installer.rs:217:5
[INFO] [stdout]     |
[INFO] [stdout] 217 |     copy_dir_content(&dir_path, &template_path);
[INFO] [stdout]     |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this `Result` may be an `Err` variant, which should be handled
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: 35 warnings emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished dev [unoptimized + debuginfo] target(s) in 1m 42s
[INFO] running `Command { std: "docker" "inspect" "00a90a1d1a1638fc299a91bc1a58563a59547e9cda75053dbc526fd3c018bff5", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "00a90a1d1a1638fc299a91bc1a58563a59547e9cda75053dbc526fd3c018bff5", kill_on_drop: false }`
[INFO] [stdout] 00a90a1d1a1638fc299a91bc1a58563a59547e9cda75053dbc526fd3c018bff5
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:20528e8c29e4536546f0102ce88568b16ea7538393a33fcca951030f7af10457" "/opt/rustwide/cargo-home/bin/cargo" "+ff34b919075f35a1787659e9c448a34b06bab8de" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] bdb05390652ad6f6ea64fc3f68537acfd7035688f797bb2abee88178fdfd45c3
[INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap.
[INFO] running `Command { std: "docker" "start" "-a" "bdb05390652ad6f6ea64fc3f68537acfd7035688f797bb2abee88178fdfd45c3", kill_on_drop: false }`
[INFO] [stderr]    Compiling cargo-luban v0.3.1 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused import: `std::fs::File`
[INFO] [stdout]  --> src/sql/sql_parser.rs:1:5
[INFO] [stdout]   |
[INFO] [stdout] 1 | use std::fs::File;
[INFO] [stdout]   |     ^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::io::Read`
[INFO] [stdout]  --> src/sql/sql_parser.rs:2:5
[INFO] [stdout]   |
[INFO] [stdout] 2 | use std::io::Read;
[INFO] [stdout]   |     ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::path::Path`
[INFO] [stdout]  --> src/sql/sql_parser.rs:4:5
[INFO] [stdout]   |
[INFO] [stdout] 4 | use std::path::Path;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::ops::FnOnce`
[INFO] [stdout]  --> src/sql/sql_parser.rs:5:5
[INFO] [stdout]   |
[INFO] [stdout] 5 | use std::ops::FnOnce;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::borrow::Borrow`
[INFO] [stdout]  --> src/sql/sql_parser.rs:6:5
[INFO] [stdout]   |
[INFO] [stdout] 6 | use std::borrow::Borrow;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::fs`
[INFO] [stdout]  --> src/structure_builder.rs:3:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | use std::fs;
[INFO] [stdout]   |     ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `tera::Tera`
[INFO] [stdout]  --> src/structure_builder.rs:4:5
[INFO] [stdout]   |
[INFO] [stdout] 4 | use tera::Tera;
[INFO] [stdout]   |     ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `fs::DirEntry`
[INFO] [stdout]  --> src/template_installer.rs:6:5
[INFO] [stdout]   |
[INFO] [stdout] 6 | use fs::DirEntry;
[INFO] [stdout]   |     ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `walkdir::WalkDir`
[INFO] [stdout]   --> src/template_installer.rs:11:5
[INFO] [stdout]    |
[INFO] [stdout] 11 | use walkdir::WalkDir;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `super::structure_builder::ProjectStructure`
[INFO] [stdout]  --> src/template_renderer.rs:5:5
[INFO] [stdout]   |
[INFO] [stdout] 5 | use super::structure_builder::ProjectStructure;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::borrow::Borrow`
[INFO] [stdout]   --> src/template_renderer.rs:11:5
[INFO] [stdout]    |
[INFO] [stdout] 11 | use std::borrow::Borrow;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::io`
[INFO] [stdout]  --> src/file_utils.rs:3:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | use std::io;
[INFO] [stdout]   |     ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::fs`
[INFO] [stdout]  --> src/ext/tera_util.rs:1:5
[INFO] [stdout]   |
[INFO] [stdout] 1 | use std::fs;
[INFO] [stdout]   |     ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `command_args_parser::ParsedArgs`
[INFO] [stdout]   --> src/main.rs:25:5
[INFO] [stdout]    |
[INFO] [stdout] 25 | use command_args_parser::ParsedArgs;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `sql::sql_parser`
[INFO] [stdout]   --> src/main.rs:26:5
[INFO] [stdout]    |
[INFO] [stdout] 26 | use sql::sql_parser;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `force`
[INFO] [stdout]    --> src/template_installer.rs:208:61
[INFO] [stdout]     |
[INFO] [stdout] 208 | pub fn install_template_from_dir(name: String, dir: String, force: bool) {
[INFO] [stdout]     |                                                             ^^^^^ help: if this is intentional, prefix it with an underscore: `_force`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_variables)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `item`
[INFO] [stdout]    --> src/template_renderer.rs:237:23
[INFO] [stdout]     |
[INFO] [stdout] 237 | fn copy_template_file(item: &ProjectStructureItem) {
[INFO] [stdout]     |                       ^^^^ help: if this is intentional, prefix it with an underscore: `_item`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `f`
[INFO] [stdout]    --> src/template_renderer.rs:261:17
[INFO] [stdout]     |
[INFO] [stdout] 261 |              Ok(f) => (),
[INFO] [stdout]     |                 ^ help: if this is intentional, prefix it with an underscore: `_f`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `e`
[INFO] [stdout]    --> src/template_renderer.rs:262:18
[INFO] [stdout]     |
[INFO] [stdout] 262 |              Err(e) => match fs::create_dir_all(&target_dir_path) {
[INFO] [stdout]     |                  ^ help: if this is intentional, prefix it with an underscore: `_e`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `t`
[INFO] [stdout]    --> src/template_renderer.rs:263:21
[INFO] [stdout]     |
[INFO] [stdout] 263 |                  Ok(t) => println!("[create dir]: {}", &target_dir_path),
[INFO] [stdout]     |                     ^ help: if this is intentional, prefix it with an underscore: `_t`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `v`
[INFO] [stdout]    --> src/template_renderer.rs:269:16
[INFO] [stdout]     |
[INFO] [stdout] 269 |             Ok(v) => println!("[copy  asset]: {}", &target_file_path),
[INFO] [stdout]     |                ^ help: if this is intentional, prefix it with an underscore: `_v`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `e`
[INFO] [stdout]   --> src/ext/tera_util.rs:76:13
[INFO] [stdout]    |
[INFO] [stdout] 76 |         Err(e) => panic!("parse sql failed")
[INFO] [stdout]    |             ^ help: if this is intentional, prefix it with an underscore: `_e`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function is never used: `read_sql_file`
[INFO] [stdout]   --> src/sql/file_to_sql.rs:15:8
[INFO] [stdout]    |
[INFO] [stdout] 15 | pub fn read_sql_file(path: &str) -> Vec<String> {
[INFO] [stdout]    |        ^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function is never used: `parse_sql_file`
[INFO] [stdout]   --> src/sql/sql_parser.rs:11:8
[INFO] [stdout]    |
[INFO] [stdout] 11 | pub fn parse_sql_file(path: &str) -> Vec<SqlQuery> {
[INFO] [stdout]    |        ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function is never used: `is_dir`
[INFO] [stdout]   --> src/structure_builder.rs:23:12
[INFO] [stdout]    |
[INFO] [stdout] 23 |     pub fn is_dir(&self) -> bool {
[INFO] [stdout]    |            ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function is never used: `get_template_path`
[INFO] [stdout]   --> src/template_installer.rs:33:8
[INFO] [stdout]    |
[INFO] [stdout] 33 | pub fn get_template_path() -> PathBuf {
[INFO] [stdout]    |        ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function is never used: `copy_template_file`
[INFO] [stdout]    --> src/template_renderer.rs:237:4
[INFO] [stdout]     |
[INFO] [stdout] 237 | fn copy_template_file(item: &ProjectStructureItem) {
[INFO] [stdout]     |    ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function is never used: `new`
[INFO] [stdout]   --> src/ext/tera_util.rs:14:8
[INFO] [stdout]    |
[INFO] [stdout] 14 |     fn new(template_path: &str)-> Self {
[INFO] [stdout]    |        ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: panic message is not a string literal
[INFO] [stdout]    --> src/template_renderer.rs:264:35
[INFO] [stdout]     |
[INFO] [stdout] 264 |                  Err(e) => panic!(e),
[INFO] [stdout]     |                                   ^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(non_fmt_panic)]` on by default
[INFO] [stdout]     = note: this is no longer accepted in Rust 2021
[INFO] [stdout] help: add a "{}" format string to Display the message
[INFO] [stdout]     |
[INFO] [stdout] 264 |                  Err(e) => panic!("{}", e),
[INFO] [stdout]     |                                   ^^^^^
[INFO] [stdout] help: or use std::panic::panic_any instead
[INFO] [stdout]     |
[INFO] [stdout] 264 |                  Err(e) => std::panic::panic_any(e),
[INFO] [stdout]     |                            ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: panic message is not a string literal
[INFO] [stdout]    --> src/template_renderer.rs:270:30
[INFO] [stdout]     |
[INFO] [stdout] 270 |             Err(e) => panic!(e)
[INFO] [stdout]     |                              ^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this is no longer accepted in Rust 2021
[INFO] [stdout] help: add a "{}" format string to Display the message
[INFO] [stdout]     |
[INFO] [stdout] 270 |             Err(e) => panic!("{}", e)
[INFO] [stdout]     |                              ^^^^^
[INFO] [stdout] help: or use std::panic::panic_any instead
[INFO] [stdout]     |
[INFO] [stdout] 270 |             Err(e) => std::panic::panic_any(e)
[INFO] [stdout]     |                       ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused `Result` that must be used
[INFO] [stdout]    --> src/template_installer.rs:201:17
[INFO] [stdout]     |
[INFO] [stdout] 201 |                 fs::copy(entry.as_path(), to_dir);
[INFO] [stdout]     |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_must_use)]` on by default
[INFO] [stdout]     = note: this `Result` may be an `Err` variant, which should be handled
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused `Result` that must be used
[INFO] [stdout]    --> src/template_installer.rs:216:5
[INFO] [stdout]     |
[INFO] [stdout] 216 |     fs::create_dir_all(&template_path);
[INFO] [stdout]     |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this `Result` may be an `Err` variant, which should be handled
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused `Result` that must be used
[INFO] [stdout]    --> src/template_installer.rs:217:5
[INFO] [stdout]     |
[INFO] [stdout] 217 |     copy_dir_content(&dir_path, &template_path);
[INFO] [stdout]     |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this `Result` may be an `Err` variant, which should be handled
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: 33 warnings emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished test [unoptimized + debuginfo] target(s) in 5.46s
[INFO] running `Command { std: "docker" "inspect" "bdb05390652ad6f6ea64fc3f68537acfd7035688f797bb2abee88178fdfd45c3", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "bdb05390652ad6f6ea64fc3f68537acfd7035688f797bb2abee88178fdfd45c3", kill_on_drop: false }`
[INFO] [stdout] bdb05390652ad6f6ea64fc3f68537acfd7035688f797bb2abee88178fdfd45c3
